package com.guandi.geekbrowser.primary.service;

import com.guandi.geekbrowser.primary.entity.User;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;

public interface UserService {

    void saveUser(User user);

    User findByNameAndPassword(String name, String password);

    Optional<User> findById(String id);

    User findByName(String name);

    List<User> findAll();

    Page<User> findAllByAdmin(String name,int pageSize,int pageNumber);
}
